// Copyright 2013 Google Inc. All Rights Reserved.

#include "nacl_timeval.h"

void __nacl_abi_timeval_to_timeval(struct nacl_abi_timeval *nacl_timeval,
                                   struct timeval *timeval) {
  timeval->tv_sec = nacl_timeval->tv_sec;
  timeval->tv_usec = nacl_timeval->tv_usec;
}

void __timeval_to_nacl_abi_timeval(struct timeval *timeval,
                                   struct nacl_abi_timeval *nacl_timeval) {
  nacl_timeval->tv_sec = timeval->tv_sec;
  nacl_timeval->tv_usec = timeval->tv_usec;
}
